import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/sysExternalSocketLog',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/sysExternalSocketLog/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/sysExternalSocketLog',
    method: 'put',
    data
  })
}

export function reuploadOne(data) {
  return request({
    url: 'api/sysExternalSocketLog/reuploadOne',
    method: 'post',
    data
  })
}

export function reuploadAll() {
  return request({
    url: 'api/sysExternalSocketLog/reuploadAll',
    method: 'get',
  })
}

export default { add, edit, del, reuploadOne, reuploadAll }
